﻿using UnityEditor;

public class BuildAssetBundle
{
    [MenuItem("Assets/BuildAssetBundles")]
    static void BuildAssetBundls()
    {
        string dir = "AssetBundles";
        if (System.IO.Directory.Exists(dir)==false)
        {
            System.IO.Directory.CreateDirectory(dir);
        }
        BuildPipeline.BuildAssetBundles(dir, BuildAssetBundleOptions.None, BuildTarget.StandaloneWindows64);
    }
}
